/*******************************************************************************
 * Copyright © 2017 FriendStar.Framework 版权所有
 * Author: HYF
 * Description: FriendStar快速开发平台
 * Website：http://www.FriendStar.cn
*********************************************************************************/
using FriendStar.Domain.Entity.WareHouse;
using FriendStar.Domain.IRepository.WareHouse;
using FriendStar.Repository.WareHouse;
using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugarRepository;

namespace FriendStar.Application.WareHouse
{
    public class CPK_21_CC_StoStorageCardApp
    {
        private ICPK_21_CC_StoStorageCardRepository service = new CPK_21_CC_StoStorageCardRepository();
        public void SaveCC_StoStorageCard(List<string> list)
        {
            service.SaveCC_StoStorageCard(list);
        }

        public void DeleteCC_StoStorageCard(List<string> list)
        {
            service.DeleteCC_StoStorageCard(list);
        }

        public void EditCC_StoStorageCard(CPK_21_CC_StoStorageCardEntity item)
        {
            service.Update(new {FStoreNO= item.FStoreNO, FStoreSetNO=item.FStoreSetNO, FQuantity= item.FQuantity, FContainerQuantity=item.FContainerQuantity,FPalletQuantity=item.FPalletQuantity, FMoney_Plane=item.Fprice_Plane*item.FQuantity } ,p=>p.FRegisterID==item.FRegisterID);
        }
    }
}
